/*
 * Filename:    HcpmsParagraphUtil.java
 * Copyright:   2014 中国平安保险（集团）股份有限公司 版权所有
 * Company:     平安科技养老险及健康险系统开发部
 * Create at:   2014年12月6日
 */
package com.paic.mhis.hcpms.itextpdf.web.util;

import com.itextpdf.text.Element;
import com.itextpdf.text.Font;
import com.itextpdf.text.Paragraph;

public class HcpmsParagraphUtil {
	public static Paragraph createParagraphTitle(Font font, String text) {
		Paragraph paragraph = new Paragraph(text, font);
		paragraph.setAlignment(Paragraph.ALIGN_CENTER);
		return paragraph;
	}

	public static Paragraph createParagraphText(Font font, String text) {
		Paragraph paragraph = new Paragraph(text, font);
		paragraph.setAlignment(Element.ALIGN_CENTER);
		return paragraph;
	}

	public static Paragraph createParagraphTextLead(Font font, String text) {
		Paragraph paragraph = new Paragraph(text, font);
		paragraph.setLeading(10f);
		paragraph.setAlignment(Element.ALIGN_CENTER);
		return paragraph;
	}
}
